package com.commons.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author mis_wu
 * @date 2022/3/23 16:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UpdatePwdVo {

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空!")
    private Long userId;

    @ApiModelProperty("用户名")
    @NotNull(message = "用户名不能为空!")
    private String userName;

    @ApiModelProperty("原登录密码")
    @NotNull(message = "原密码不能为空!")
    private String oldPwd;

    @ApiModelProperty("新登录密码")
    @NotNull(message = "新密码不能为空!")
    private String newPwd;
}
